const loginCheck = () => {
	if (uni.getStorageSync("userData") == "") {
		uni.showModal({
			title: "当前用户未登录，请先登录",
			content: "登录后可体验完整功能",
			success(res) {
				if (res.confirm) {
					uni.navigateTo({
						url: "/pages/login/login"
					})
				}
			}
		})
		return false
	} else {
		return true
	}
}
export default loginCheck